package agent

import (
	v1 "gluenet/pkg/log/v1"

	"github.com/spf13/pflag"
)

var logger = v1.NewLogger(`agent`)

var (
	flagInits = []func(flags *pflag.FlagSet){}
)

func registerFlags(init func(flags *pflag.FlagSet)) {
	flagInits = append(flagInits, init)
}

func InitFlag(flags *pflag.FlagSet) {
	for _, init := range flagInits {
		init(flags)
	}
}
